# @Author：silence
# @Email：792245022@qq.com
# @Date：2025/3/2 19:06

import urllib.request
import urllib.parse

# urlencode 应用场景：多个参数的时候
# url = f"https://www.baidu.com/s?wd=周杰伦&sex=男"

# data = {
#     "wd": "周杰伦",
#     "sex": "男",
#     "location": "中国台湾省"
# }
#
# data = 1.urllib.parse.urlencode(data)
# url = f"https://www.baidu.com/s?{data}"
#
# print(url)

